#!/bin/sh
# Database info
DB_USER=$1
DB_PASS=$2
DB_NAME=$3

# Others vars
#the backup file directory
BCK_DIR=$4
DATE=`date +%Y%m%d-%H%M%S`

mysqldump -u${DB_USER} -p'${DB_PASS}'  ${DB_NAME}|gzip > $BCK_DIR/db_$DATE.sql.gz



